(Fy_or_n_p): Ensure cursor_in_echo_area = 0 when quit.
authorRichard M. Stallman <rms@gnu.org>
Thu, 25 Mar 1993 06:32:43 +0000 (06:32 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 25 Mar 1993 06:32:43 +0000 (06:32 +0000)
src/fns.c

index 27927d73abec6357206a6bcea66a7361a95b6abc..667612237afe346ab98bea0b429c0598bde130b0 100644 (file)
--- a/src/fns.c
+++ b/src/fns.c
@@ -1112,6 +1112,10 @@ Also accepts Space to mean yes, or Delete to mean no.")
       cursor_in_echo_area = 1;
 
       obj = read_char (0, 0, 0, Qnil, 0);
+      cursor_in_echo_area = 0;
+      /* If we need to quit, quit with cursor_in_echo_area = 0.  */
+      QUIT;
+
       key = Fmake_vector (make_number (1), obj);
       def = Flookup_key (map, key);
       answer_string = Fsingle_key_description (obj);